package spr.lime.lmAdm.service.login;

import java.util.HashMap;

import org.springframework.orm.ibatis.SqlMapClientTemplate;

import spr.lime.lmAdm.dao.login.AdmLoginDao;
import spr.lime.lmAdm.model.login.AdmMemberModel;

public class AdmLoginService implements AdmLoginDao{
	
private SqlMapClientTemplate sqlMapClientTemplate;
private HashMap<String, Object> valueMap = new HashMap<String, Object>();

	public void setSqlMapClientTemplate(SqlMapClientTemplate sqlMapClientTemplate) {
		this.sqlMapClientTemplate = sqlMapClientTemplate;
	}

	
	@Override
	public AdmMemberModel loginCheck(String userId , String passwd) {
		valueMap.put("userId", userId);
		valueMap.put("passwd", passwd);
		return (AdmMemberModel) sqlMapClientTemplate.queryForObject("admMember.loginChk", valueMap);

	}	
	
	
	
}
